package main

import (
	"github.com/gogf/gf/v2/net/gudp"
)

type Server struct {
	*gudp.Server
	OnlineUsers map[string]*gudp.Conn
}

// NewServer 新建一个服务端，心跳统一规定是客户端ping服务端
func NewServer() *Server {
	s := new(Server)
	s.OnlineUsers = make(map[string]*gudp.Conn, 0)
	return s
}
